﻿using System;
using System.Web.UI.WebControls;
using ContractManagermentSystem.Business;

namespace ContractManagermentSystem.Pages
{
    public partial class ContractorManagement : System.Web.UI.Page
    {
        private readonly ContractorBus _contractorBus = new ContractorBus();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadContractor();
            }
        }

        public void LoadContractor()
        {
            ContractorGridView.DataSource = _contractorBus.LoadAllContractor();
            ContractorGridView.DataBind();
        }
    }
}
